KeyedCollection.opIndex

Gets the approriate T. You can either use an item that equals the item you want back, a key of the item you want back or parameters that can make the key for the item you want back.

  1. inout(T) opIndex(T item)
    mixintemplate KeyedCollection(T)
    final ref inout
    inout(T)
    opIndex
    (
    in T item
    )
  2. inout(T) opIndex(key_type clIdx)
  3. inout(T) opIndex(A a)

Return Value

Type: inout(T)

The item in the collection that matches item.

$(THROWS KeyedException, if $(D this) does not contain a matching clustered index.)

Precondition:

assert(item !is null);

Meta